import { rule } from "@/util/validateRules";
export const tableOption = {
  border: true,
  index: true,
  indexLabel: '序号',
  stripe: true,
  menuAlign: 'center',
  searchMenuSpan: 6,
  editBtn: false,
  delBtn: false,
  align: 'center',
  addBtn: false,
  viewBtn: false,
  labelWidth:120,
  menuWidth:280,
  selection: true,
  column: [{
    label: '规格',
    prop: 'a',
    span: 24,
    rules: [
      { required: true, message: '规格不能为空', trigger: 'blur' }
    ]
  }, {
    label: '商品编号',
    prop: 'b',
    span: 24,
    rules: [
      { required: true, message: '商品编号不能为空', trigger: 'blur' }
    ]
  }, {
    label: '商品名称',
    prop: 'c',
    span: 24,
    rules: [
      { required: true, message: '商品名称不能为空', trigger: 'blur' }
    ]
  },{
    label: '商品类别',
    prop: 'd',
    span: 24,
    rules: [
      { required: true, message: '商品类别不能为空', trigger: 'blur' }
    ]
  },{
    label: '品牌名称',
    prop: 'e',
    span: 24,
    rules: [
      { required: true, message: '品牌名称不能为空', trigger: 'blur' }
    ]
  },{
    label: '价格',
    prop: 'f',
    span: 24,
    rules: [
      { required: true, message: '价格不能为空', trigger: 'blur' }
    ]
  },{
    label: '供货价',
    prop: 'g',
    span: 24,
    rules: [
      { required: true, message: '供货价不能为空', trigger: 'blur' }
    ]
  },{
    label: '库存',
    prop: 'h',
    span: 24,
    rules: [
      { required: true, message: '库存不能为空', trigger: 'blur' }
    ]
  },{
    label: '上传用户',
    prop: 'i',
    span: 24,
    rules: [
      { required: true, message: '上传用户不能为空', trigger: 'blur' }
    ]
  },{
    label: '状态',
    prop: 'i',
    span: 24,
    rules: [
      { required: true, message: '状态不能为空', trigger: 'blur' }
    ]
  },{
    label: '商品链接页',
    prop: 'i',
    span: 24,
    rules: [
      { required: true, message: '商品链接页不能为空', trigger: 'blur' }
    ]
  },{
    label: '产品直观图',
    prop: 'i',
    span: 24,
    rules: [
      { required: true, message: '产品直观图不能为空', trigger: 'blur' }
    ]
  },{
    label: '产品质检报告',
    prop: 'i',
    span: 24,
    rules: [
      { required: true, message: '产品质检报告不能为空', trigger: 'blur' }
    ]
  }]
}
